
package Activity.Gsb;

import Modele.Gsb.DAO;
import Modele.Gsb.Medecin;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import java.util.List;




public class listeMedActivity extends ListActivity{
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
             super.onCreate(savedInstanceState);
        setContentView(R.layout.listemedpardep);
        Intent intent= this.getIntent();
        String numDep= intent.getStringExtra("leDepartement");
               List<Medecin> lesMedecins = DAO.getLesMedecins(numDep);
        MedecinAdapter  adapter = new MedecinAdapter (lesMedecins,this );
        setListAdapter(adapter);
   
    }
    
}
